home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / midas060 / samples / midpnt / midpnt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-25  |  4.6 KB  |  194 lines

  1. /*
  2.  *      MidpNT.h
  3.  *
  4.  * MIDAS Module Player for Windows NT global definitions
  5.  *
  6.  * $Id: MidpNT.h 1.8 1997/01/25 13:17:01 pekangas Exp $
  7.  *
  8.  * Copyright 1996 Petteri Kangaslampi
  9. */
  10.  
  11. #ifndef __MIDPNT_H
  12. #define __MIDPNT_H
  13.  
  14. #define VERSION 0.2
  15. #define FULLVERSION 0.2.3
  16. #define VERSTR "0.2"
  17. #define FULLVERSTR "0.2.3"
  18.  
  19. extern HANDLE   instance;
  20. extern int      mixRate, stereo, force8bit;
  21. extern MIDASmodule module;
  22. extern HWND     mainWinHandle;
  23. extern DWORD    ddeInstance;
  24. extern int      ddeInit;
  25. extern int      viewsChildren;
  26. extern int      minimalUI;
  27. extern char     unzipDir[];
  28.  
  29.  
  30.  
  31.  
  32. /* Custom window messages: */
  33. enum midpWindowMessages
  34. {
  35.     MIDPMSG_SONGCHANGED = WM_USER+200
  36. };
  37.  
  38.  
  39.  
  40. /****************************************************************************\
  41. *
  42. * Function:     void StartupMIDAS(void)
  43. *
  44. * Description:  Start up interface to MIDAS Sound System
  45. *
  46. \****************************************************************************/
  47.  
  48. void StartupMIDAS(void);
  49.  
  50.  
  51.  
  52.  
  53. /****************************************************************************\
  54. *
  55. * Function:     void InitMIDAS(void)
  56. *
  57. * Description:  Initializes MIDAS Sound System
  58. *
  59. \****************************************************************************/
  60.  
  61. void InitMIDAS(void);
  62.  
  63.  
  64.  
  65.  
  66. /****************************************************************************\
  67. *
  68. * Function:     void CloseMIDAS(void)
  69. *
  70. * Description:  Uninitializes MIDAS Sound System
  71. *
  72. \****************************************************************************/
  73.  
  74. void CloseMIDAS(void);
  75.  
  76.  
  77.  
  78. /****************************************************************************\
  79. *
  80. * Function:     MIDASmodule *LoadModule(char *fileName);
  81. *
  82. * Description:  Loads a module file
  83. *
  84. * Input:        char *fileName          module file name
  85. *
  86. * Returns:      MIDAS module handle, NULL if loading failed.
  87. *
  88. \****************************************************************************/
  89.  
  90. MIDASmodule LoadModule(char *fileName);
  91.  
  92.  
  93.  
  94.  
  95. /****************************************************************************\
  96. *
  97. * Function:     void PlayModule(MIDASmodule module);
  98. *
  99. * Description:  Starts playing a module
  100. *
  101. * Input:        MIDASmodule module      the module
  102. *
  103. * Returns:      MIDAS module handle, NULL if loading failed.
  104. *
  105. \****************************************************************************/
  106.  
  107. void PlayModule(MIDASmodule module);
  108.  
  109.  
  110.  
  111.  
  112. /****************************************************************************\
  113. *
  114. * Function:     void StopFreeModule(gmpModule *module);
  115. *
  116. * Description:  Stops playing a module and deallocates it
  117. *
  118. * Input:        MIDASmodule module      MIDAS module handle returned by
  119. *                                       LoadPlayModule().
  120. *
  121. \****************************************************************************/
  122.  
  123. void StopFreeModule(MIDASmodule module);
  124.  
  125.  
  126.  
  127.  
  128. /****************************************************************************\
  129. *
  130. * Function:     void AddTextLine(char *textLine)
  131. *
  132. * Description:  Adds a line of text to main window edit control
  133. *
  134. * Input:        char *textLine          text line
  135. *
  136. \****************************************************************************/
  137.  
  138. void AddTextLine(char *textLine);
  139.  
  140.  
  141.  
  142. /****************************************************************************\
  143. *
  144. * Function:     void Panic(char *message)
  145. *
  146. * Description:  Exits MidpNT with a "MIDP Panic" message
  147. *
  148. * Input:        char *message           message string
  149. *
  150. \****************************************************************************/
  151.  
  152. void Panic(char *message);
  153.  
  154.  
  155.  
  156.  
  157. /****************************************************************************\
  158. *
  159. * Function:     void MIDASerror(void)
  160. *
  161. * Description:  Gets the last MIDAS error, displays it, and exits
  162. *
  163. \****************************************************************************/
  164.  
  165. void MIDASerror(void);
  166.  
  167.  
  168.  
  169. #endif
  170.  
  171. /*
  172.  * $Log: MidpNT.h $
  173.  * Revision 1.8  1997/01/25 13:17:01  pekangas
  174.  * Rewrote archive support, now much better
  175.  *
  176.  * Revision 1.7  1997/01/17 00:08:39  pekangas
  177.  * Added minimalUI flag, changed version to 0.2.1
  178.  *
  179.  * Revision 1.6  1997/01/14 17:42:08  pekangas
  180.  * Changed to use MIDAS DLL API
  181.  *
  182.  * Revision 1.5  1996/10/14 20:42:38  pekangas
  183.  * Changed version to 0.1.7
  184.  *
  185.  * Revision 1.4  1996/09/25  18:43:46  pekangas
  186.  * Changed version number to 0.1.6
  187.  *
  188.  * Revision 1.3  1996/09/13  06:48:38  pekangas
  189.  * Changed version number to 0.1.5
  190.  *
  191.  * Revision 1.2  1996/09/01  20:57:40  pekangas
  192.  * Changed MidpNT revision number, converted to LFs, added RCS keywords
  193.  *
  194. */